package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * description:
 *
 * @Author caoshuaifeng
 * @Create 2025/3/31 08:51
 * @Version 1.0
 */
@Data
@TableName("order")
public class Order {
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @NotNull(message = "拼团ID不能为空")
    private Long groupId;

    @Size(min = 1, max = 100, message = "团购信息长度在1到100之间")
    private String message;





}
